package com.ruoyi.answer.service;

import com.ruoyi.answer.domain.ExamQuestionChoice;
import com.ruoyi.answer.domain.vo.ExamQuestionChoiceVo;
import com.ruoyi.answer.domain.bo.ExamQuestionChoiceBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 选择题选项Service接口
 *
 * @author ruoyi
 * @date 2022-08-19
 */
public interface IExamQuestionChoiceService {

    /**
     * 查询选择题选项
     */
    ExamQuestionChoiceVo queryById(Long id);

    /**
     * 查询选择题选项列表
     */
    TableDataInfo<ExamQuestionChoiceVo> queryPageList(ExamQuestionChoiceBo bo, PageQuery pageQuery);

    /**
     * 查询选择题选项列表
     */
    List<ExamQuestionChoiceVo> queryList(ExamQuestionChoiceBo bo);

    /**
     * 新增选择题选项
     */
    Boolean insertByBo(ExamQuestionChoiceBo bo);

    /**
     * 修改选择题选项
     */
    Boolean updateByBo(ExamQuestionChoiceBo bo);

    /**
     * 校验并批量删除选择题选项信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
